package com.coldchain.common.resource;

import com.coldchain.common.vo.MenuVo;
import com.coldchain.common.vo.ZuulVo;


import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName ResourceManage
 * @Description TODO
 * @Author fangliai
 * @Date 2018/9/8 10:05
 * @Vesion 1
**/
public final class ResourceManage {

    private static List<MenuVo> menus=new ArrayList<>();

    private static List<ZuulVo> zuuls=new ArrayList<>();

    public static void addMenu(MenuVo menuVO){
          menus.add(menuVO);
    }

    public  static void addZuul(ZuulVo zuulVo){
         zuuls.add(zuulVo);
    }

    public static void clear(){
        menus.clear();
        zuuls.clear();
        menus=null;
        zuuls=null;
    }
}
